package com.wanxi.spring.cloud.permission.controller;


import com.wanxi.spring.cloud.commons.api.CommonResult;
import com.wanxi.spring.cloud.permission.service.RolePermissionService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

import java.util.Map;

/**
 * <p>
 *  前端控制器
 * </p>
 *
 * @author 蒋帆
 * @since 2020-12-21
 */
@RestController
@RequestMapping("/rolePermission")
public class RolePermissionController {

    @Autowired
    RolePermissionService rolePermissionService;

    @PostMapping("/updateRolePermission")
    public CommonResult updateRolePermission(@RequestParam Map map){
        return rolePermissionService.updateRolePermission(map);
    }

}
